package com.yyfax.pay.third.model.to.quickpay;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.yyfax.pay.third.model.to.quickpay.xml.TxnMsgContent;

/**
 * 支付响应
 * 
 * @author xiemh
 * @date 2017-04-11 22:04:26
 * @since v1.0.0
 */
@SuppressWarnings("serial")
public class PayOrderQuickPayContent extends BaseQuickPayContent {
	private String version = "1.0";

	@XStreamAlias("TxnMsgContent")
	private TxnMsgContent txnMsgContent;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public TxnMsgContent getTxnMsgContent() {
		return txnMsgContent;
	}

	public void setTxnMsgContent(TxnMsgContent txnMsgContent) {
		this.txnMsgContent = txnMsgContent;
	}
	
	/**
	 * xml转换成实体类
	 */
	public static PayOrderQuickPayContent fromXml(String xml) {
		return (PayOrderQuickPayContent) fromXml(xml, PayOrderQuickPayContent.class);
	}
}
